package cn.yzx.pethome.system.pet.service;

import cn.yzx.pethome.base.query.BaseQuery;
import cn.yzx.pethome.system.pet.domain.Pet;
import cn.yzx.pethome.base.service.IBaseService;
import cn.yzx.pethome.system.pet.query.PetQuery;
import org.springframework.stereotype.Repository;

import javax.servlet.http.HttpServletRequest;
import java.util.List;

/**
 * <p>
 *  服务类
 * </p>
 *
 * @author yanzixuan
 * @since 2023-02-05
 */
@Repository
public interface IPetService extends IBaseService<Pet> {

    void add(Pet pet, HttpServletRequest request);

    List<Pet> findByQuery(PetQuery query, HttpServletRequest request);

    Long findByQueryCount(PetQuery query,HttpServletRequest request);

    String onsale(List<Long> ids);

    void offsale(List<Long> ids);
}
